package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"nm/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/register", &controllers.UserMainController{}, "post:Register")
	beego.Router("/login", &controllers.UserMainController{}, "post:Login")
	beego.Router("/add", &controllers.Shop{}, "post:Add")
	beego.Router("/del", &controllers.Shop{}, "get:Del")
	beego.Router("/list", &controllers.Shop{}, "get:List")
	beego.Router("/update", &controllers.Shop{}, "post:Update")
}
